MarkLogic 9 Product Documentation
HEAD /manage/v2/packages/{pkgname}

Summary

[DEPRECATED: use GET /manage/v3 and POST /manage/v3 instead.]

This resource address tests for an existing package, named pkgname. 200 OK is returned if the package exists. Otherwise 404 Not Found is returned.

Required Privileges

This operation requires the manage-user role, or the following privilege:

http://marklogic.com/xdmp/privileges/manage

Example

 
     curl -i -X HEAD --digest -u admin:admin -H "Content-type: application/xml" \
     "http://localhost:8002/manage/v2/packages/test-package" 

     ==> Checks for the existence of a package named "test-package". 
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy